package com.kmsoft.gateway.repository;

import com.kmsoft.gateway.domain.GatewayConfigDomain;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public class GatewayConfigRepository {

    public List<GatewayConfigDomain> list(){
        // todo 查询数据库
        GatewayConfigDomain provider = new GatewayConfigDomain("km-provider","0","km-provider","/provider/**");
        GatewayConfigDomain consumer =new GatewayConfigDomain("km-consumer","0","km-consumer","/consumer/**");
        List<GatewayConfigDomain> list = new ArrayList<>();
        list.add(provider);
        list.add(consumer);
        return list;
    }
}
